package ru.papergames.battleserver.model;

import ru.papergames.common.form.PcPlayerForm;

/**
 * @author: ATroshanin
 * Date: 15.06.2010
 * Time: 15:36:02
 */
public class ConnectingFlashUser {

    private PcPlayerForm player;
    private int secretKey;
    private long startWaitingForUsersConnectTime;

    public ConnectingFlashUser(PcPlayerForm player, int secretKey) {
        this.player = player;
        this.secretKey = secretKey;
        this.startWaitingForUsersConnectTime = System.currentTimeMillis();
    }

    public PcPlayerForm getPlayer() {
        return player;
    }

    public int getSecretKey() {
        return secretKey;
    }

    public long getStartWaitingForUsersConnectTime() {
        return startWaitingForUsersConnectTime;
    }

    @Override
    public String toString() {
        return "ConnectingFlashUser{" +
                "player=" + player +
                ", secretKey=" + secretKey +
                '}';
    }
}
